<html>
<head>
<title>Testseite</title>
</head>
<body bgcolor="#ffffff" text="#000000">
<table border=1>
<!-- PHP Anfang -->
<?php
setlocale (LC_TIME, "de_DE"); // Sprache in php4 auf deutsch setzen
echo "<tr><td>Datum:</td>"; // von php4 erzeugter HTML-Code
echo "<td>";
echo strftime("%A, %d.%m.%Y"); // Ausgabe des akt. Datums ber php4
echo "</td></tr>";
?>
<!-- PHP-Ende -->
<!-- wieder reiner HML-Code -->
<tr><td>Uhrzeit:</td>
<td>
<!-- PHP Anfang -->
<?php
echo strftime("%H:%M"); // Ausgabe der akt. Zeit ber php4
?>
<!-- PHP-Ende -->
</td>
</tr>
</table>
</body>
</html>


<?$timestamp = time();
$datum = date("d.m.Y",$timestamp);
echo "Datum: ",$datum;?>